package cn.getech.data.development.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 类目信息表(bdp_data_category)
 *
* @author bianj
* @version 1.0.0 2020-09-29
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "类目信息表")
@TableName("bdp_data_category")
public class BdpDataCategory implements Serializable {
    /** 版本号 */
    private static final long serialVersionUID = -68587565864416263L;

    /* This code was generated by TableGo tools, mark 1 begin. */

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类别名称")
    private String categoryName;

    @ApiModelProperty(value = "父ID")
    private Integer parentId;

    @ApiModelProperty(value = "层级 ")
    private Integer level;

    @ApiModelProperty(value = "创建人ID ")
    private Integer createPer;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Integer updatePer;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date updateTime;

    @TableField(exist=false)
    private List<?> children;
    private Integer tenantId;
    /**
     * 获取主键
     * 
     * @return 主键
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置主键
     * 
     * @param id
     *          主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取类别名称
     * 
     * @return 类别名称
     */
    public String getCategoryName() {
        return this.categoryName;
    }

    /**
     * 设置类别名称
     * 
     * @param categoryName
     *          类别名称
     */
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    /**
     * 获取父ID
     * 
     * @return 父ID
     */
    public Integer getParentId() {
        return this.parentId;
    }

    /**
     * 设置父ID
     * 
     * @param parentId
     *          父ID
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取层级 
     * 
     * @return 层级 
     */
    public Integer getLevel() {
        return this.level;
    }

    /**
     * 设置层级 
     * 
     * @param level
     *          层级 
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    /**
     * 获取创建人ID 
     * 
     * @return 创建人ID 
     */
    public Integer getCreatePer() {
        return this.createPer;
    }

    /**
     * 设置创建人ID 
     * 
     * @param createPer
     *          创建人ID 
     */
    public void setCreatePer(Integer createPer) {
        this.createPer = createPer;
    }

    /**
     * 获取创建时间
     * 
     * @return 创建时间
     */
    public Date getCreateTime() {
        return this.createTime;
    }

    /**
     * 设置创建时间
     * 
     * @param createTime
     *          创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新人
     * 
     * @return 更新人
     */
    public Integer getUpdatePer() {
        return this.updatePer;
    }

    /**
     * 设置更新人
     * 
     * @param updatePer
     *          更新人
     */
    public void setUpdatePer(Integer updatePer) {
        this.updatePer = updatePer;
    }

    /**
     * 获取更新时间
     * 
     * @return 更新时间
     */
    public Date getUpdateTime() {
        return this.updateTime;
    }

    /**
     * 设置更新时间
     * 
     * @param updateTime
     *          更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /* This code was generated by TableGo tools, mark 2 end. */
}